package com.life.wd.service;

import com.life.wd.dto.CommunityPostAddRequest;
import com.life.wd.dto.CommunityPostQueryRequest;
import com.life.wd.entity.CommunityPosts;
import com.life.wd.result.PageResult;

import java.io.IOException;
import java.util.List;

public interface CommunityPostService {
    Integer addPost(CommunityPostAddRequest request) throws IOException;

    PageResult listPosts(CommunityPostQueryRequest request);

    CommunityPosts getPostById(Integer postId);

    boolean deletePost(Integer postId);

    boolean deletePostsBatch(List<Integer> postIds);
}
